// kX Driver / kX Driver Interface / kX Driver Effects Library
// Copyright (c) Eugene Gavrilov, 2001-2005.
// All rights reserved

/*
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */

// 10kX microcode
// Patch name: 'vibrato'

char *vibrato_copyright="Copyright c Max Mikhailov, 2004";
char *vibrato_engine="kX";
char *vibrato_comment="";
char *vibrato_created="April'2004";
char *vibrato_guid="d8dc1380-56ec-4098-960f-44e461f818d0";

char *vibrato_name="vibrato";
int vibrato_itramsize=2002,vibrato_xtramsize=0;

dsp_register_info vibrato_info[]={
	{ "in1",0x4000,0x7,0xffff,0x0 },
	{ "in2",0x4001,0x7,0xffff,0x0 },
	{ "out1",0x8000,0x8,0xffff,0x0 },
	{ "out2",0x8001,0x8,0xffff,0x0 },
	{ "freq",0x8002,0x4,0xffff,0x19999999 },
	{ "phase",0x8003,0x4,0xffff,0x7fffffff },
	{ "s",0x8004,0x1,0xffff,0x0 },
	{ "depth",0x8005,0x4,0xffff,0xccccccc },
	{ "osc1",0x8006,0x1,0xffff,0x0 },
	{ "osc2",0x8007,0x1,0xffff,0x0 },
	{ "t1",0x8008,0x1,0xffff,0x0 },
	{ "t2",0x8009,0x1,0xffff,0x0 },
	{ "maxtime",0x800a,0x5,0xffff,0x1f3000 },
	{ "_AC1a36e2",0x800b,0x5,0xffff,0x1a36e2 },
	{ "_AC800",0x800c,0x5,0xffff,0x800 },
	{ "b",0x800d,0x3,0xffff,0x0 },
	{ "d1",0x800e,0x49,0xffff,0x0 },
	{ "&d1",0x800f,0xb,0xffff,0x0 },
	{ "d11",0x8010,0x29,0xffff,0x3e8 },
	{ "&d11",0x8011,0xb,0xffff,0x3e8 },
	{ "d12",0x8012,0x29,0xffff,0x3e8 },
	{ "&d12",0x8013,0xb,0xffff,0x3e8 },
	{ "d2",0x8014,0x49,0xffff,0x3e9 },
	{ "&d2",0x8015,0xb,0xffff,0x3e9 },
	{ "d21",0x8016,0x29,0xffff,0x7d1 },
	{ "&d21",0x8017,0xb,0xffff,0x7d1 },
	{ "d22",0x8018,0x29,0xffff,0x7d1 },
	{ "&d22",0x8019,0xb,0xffff,0x7d1 },
};

dsp_code vibrato_code[]={
	{ 0x0,0x800d,0x2040,0x8002,0x800b },
	{ 0x3,0x8004,0x8004,0x800d,0x204f },
	{ 0x2,0x8007,0x8004,0x8003,0x204f },
	{ 0x9,0x8006,0x8004,0x8004,0x2040 },
	{ 0x9,0x8007,0x8007,0x8007,0x2040 },
	{ 0x0,0x800e,0x2040,0x4000,0x204f },
	{ 0x0,0x8014,0x2040,0x4001,0x204f },
	{ 0x5,0x8008,0x2040,0x8008,0x2055 },
	{ 0x5,0x8009,0x2040,0x8009,0x2055 },
	{ 0xe,0x8000,0x8010,0x8008,0x8012 },
	{ 0xe,0x8001,0x8016,0x8009,0x8018 },
	{ 0x0,0x8009,0x2040,0x800a,0x8005 },
	{ 0x0,0x8008,0x800f,0x8009,0x8006 },
	{ 0x4,0x8011,0x8008,0x800c,0x2042 },
	{ 0x4,0x8013,0x8008,0x800c,0x2043 },
	{ 0x0,0x8009,0x8015,0x8009,0x8007 },
	{ 0x4,0x8017,0x8009,0x800c,0x2042 },
	{ 0x4,0x8019,0x8009,0x800c,0x2043 },
};

